from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView

from .views import RegisterView, UserProfileView, UpdateProfileView,UploadAvatarView,ChangePasswordView

urlpatterns = [
    path('users/register/', RegisterView.as_view(), name='register'),
    path('users/login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('users/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('users/change-password/', ChangePasswordView.as_view(), name='change_password'),
    path('users/profile/', UserProfileView.as_view(), name='user_profile'),
    path('users/profile/update/', UpdateProfileView.as_view(), name='update_profile'),
    path('users/upload-avatar/', UploadAvatarView.as_view(), name='upload_avatar'),
]
